package com.powernode.crm.customer.service.impl;

import com.powernode.crm.customer.mapper.CustomerMapper;
import com.powernode.crm.customer.model.Customer;
import com.powernode.crm.customer.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerMapper customerMapper;
    @Override
    public List<Customer> queryByName(String name, int size) {
        return customerMapper.selectByName(name,size);
    }
}
